package com.kehutong.admin.util;


public class GlobalConfig {
	
	public static final String LOGIN = "LOGIN";
 
    // Api 前缀
    private static String restApiPath;
 
    // 项目基础路径
    private static String oneUrl;
 
    /**
     * Cookie失效时间
     */
    private static Long cookieExpireTime = 60 * 30L;
 
    /**
     * 注册验证码失效时间
     */
    private static Long registryCodeExpireTime = 60 * 30L;
 
    /**
     * 登录失败次数限制
     */
    private static Integer maxLoginErrorCount = 3;
 
    private static String companyName;
 
    public static String DEFAULT_CHART_SET = "UTF-8";
 
    public static String getRestApiPath() {
        return restApiPath;
    }
 
    public static void setRestApiPath(String restApiPath) {
        GlobalConfig.restApiPath = restApiPath;
    }
 
    public static String getOneUrl() {
        return oneUrl;
    }
 
    public static void setOneUrl(String oneUrl) {
        GlobalConfig.oneUrl = oneUrl;
    }
 
    public static Long getCookieExpireTime() {
        return cookieExpireTime;
    }
 
    public static void setCookieExpireTime(Long cookieExpireTime) {
        GlobalConfig.cookieExpireTime = cookieExpireTime;
    }
 
    public static Long getRegistryCodeExpireTime() {
        return registryCodeExpireTime;
    }
 
    public static void setRegistryCodeExpireTime(Long registryCodeExpireTime) {
        GlobalConfig.registryCodeExpireTime = registryCodeExpireTime;
    }
 
    public static Integer getMaxLoginErrorCount() {
        return maxLoginErrorCount;
    }
 
    public static void setMaxLoginErrorCount(Integer maxLoginErrorCount) {
        GlobalConfig.maxLoginErrorCount = maxLoginErrorCount;
    }
 
    public static String getCompanyName() {
        return companyName;
    }
 
    public static void setCompanyName(String companyName) {
        GlobalConfig.companyName = companyName;
    }
}